import request from '@/utils/request'

// 查询余额预警列表
export function listBalance_warning(query) {
  return request({
    url: '/system/balance_warning/list',
    method: 'get',
    params: query
  })
}

// 查询余额预警详细
export function getBalance_warning(warningId) {
  return request({
    url: '/system/balance_warning/' + warningId,
    method: 'get'
  })
}

// 新增余额预警
export function addBalance_warning(data) {
  return request({
    url: '/system/balance_warning',
    method: 'post',
    data: data
  })
}

// 修改余额预警
export function updateBalance_warning(data) {
  return request({
    url: '/system/balance_warning',
    method: 'put',
    data: data
  })
}

// 删除余额预警
export function delBalance_warning(warningId) {
  return request({
    url: '/system/balance_warning/' + warningId,
    method: 'delete'
  })
}
